<?php slot('title', sprintf('[HRP] %s - All Over Mobius', $ktd_forum->getName())) ?>
<div class="cat"><img style="vertical-align: top" src="/images/mgen/icon/pastille.png"/><h1><?php echo $ktd_forum->getName() ?></h1></div>
<a class="btn primary" href="<?php echo url_for('new_topic', $ktd_forum) ?>">Nouveau Sujet</a>
<div style="height: 50px"></div>
<?php foreach($ktd_topics as $ktd_topic): ?>
        <div class="topic-list-cadre">
            <div class="topic-list-cadre-sprite lf <?php echo $ktd_topic->isNew() ? 'new' : 'old' ?>" title="<?php echo $ktd_topic->isNew() ? 'Nouveau' : 'Ancien' ?>"></div>
            <div class="rg">
                <div class="topic-list-cadre-sprite display">
                    <div class="topic-list-cadre-sprite rg">
                        <div class="span-9">
                            <?php echo $ktd_topic != NULL ? link_to($ktd_topic->getTitle(), 'show_topic', $ktd_topic) : '' ?><br/>
                            <span style="font-size: xx-small">Par <?php echo link_to($ktd_topic->getStarterPlayer()->getPseudo(), "show_player", $ktd_topic->getStarterPlayer())  ?> le <?php echo $ktd_topic->getCreatedAt() ?></span>
                        </div>
                        <div class="span-2">
                            <?php echo $ktd_topic->countMessages() ?> <span style="font-size: x-small">message<?php echo $ktd_topic->countMessages() == 1 ? '' : 's'?></span>
                        </div>
                        <div class="span-3">
                            <span style="font-size: x-small"><?php echo link_to("Dernier message", "show_last_topic_message", $ktd_topic) ?></span><br/>
                            <span style="font-size: xx-small">Par <?php echo link_to($ktd_topic->getLastMessage()->getKTDPlayer()->getPseudo(), "show_player", $ktd_topic->getLastMessage()->getKTDPlayer()) ?></span>
                        </div>
                    </div>
                    <div class="topic-list-cadre-sprite lf">
                    </div>
                </div>
                <div class="topic-list-cadre-sprite bottom"></div>
            </div>
        </div>
<?php endforeach; ?>